"""
日期【2020/8/4】
"""
from rest_framework import serializers
from .models import *


class Userser(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class coursecateser(serializers.ModelSerializer):
    class Meta:
        model = coursecate
        fields = '__all__'


class coursebiaoser(serializers.ModelSerializer):
    class Meta:
        model = coursebiao
        fields = '__all__'


class Courseniuser(serializers.ModelSerializer):
    pic = serializers.ImageField(read_only=True)

    class Meta:
        model = Courseniu
        fields = '__all__'
